<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:67:"/www/wwwroot/xunda-college/application/index/view/course/lists.html";i:1702639470;}*/ ?>
<?php foreach($courseData as $course): ?>
<li <?php if($param['id'] == $course['course_id']): ?>  class="active" <?php endif; ?>>
	<a href="/learnings/<?php echo $course['course_id']; ?>.html">
		<?php if($course['type'] == 3): ?>
		<div class="progress-svg">
			<svg aria-label="<?php echo $course['percent']; ?>" class="progress" xmlns="http://www.w3.org/2000/svg" width="20"
				height="35" role="img" viewBox="-3 0 20 37">
				<rect x="0" y="18" width="14" height="14"></rect>
				<rect x="0" y="8" width="14" height="8"></rect>
				<rect x="0" y="30" width="14" height="2"></rect>
				<polygon points="14 0 10.131 3.774 7 0 3.868 3.775 0 0 0 6 14 6"></polygon>
			</svg>
		</div>
		<?php else: ?>
		<div class="icon">
			<i class="iconfont icon-<?php echo returnCourseType($course['type']); ?>"></i>
			<div class="layui-progress">
				<div class="layui-progress-bar" lay-percent="<?php echo $course['percent']; ?>%"></div>
			</div>
			<?php if($course['percent'] >= 90): ?><div class="complete"><i class="iconfont icon-gou"></i></div><?php endif; ?>
		</div>
		<?php endif; ?>
		<div class="t">
			<h4><?php echo $course['course_name']; ?></h4>
		</div>
		<?php if($course['is_free'] == 1): ?><em>试看</em><?php endif; ?>
	</a>
</li>
<?php endforeach; ?>